/*
 * Copyright 2012 the original author or authors.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 */
package org.chacha.client;

import org.chacha.exception.ChachaException;

/**
 *  命令发送接口
 *	@author: hejing
 *	@date: 2012-11-30-下午03:00:26
 */
public interface Sender {
	/**
	 * 同步发送请求
	 * @param request  请求消息，json格式字串
	 * @return	请求应答消息，json格式字串
	 * @throws ChachaException 
	 */
	public String syncRequest(String request) throws ChachaException;
}
